package org.eae.eldf.service.sys.impl;

import org.eae.eldf.dao.sys.ISysSequenceDao;
import org.eae.eldf.dto.sys.SysSequenceQueryDto;
import org.eae.eldf.entity.sys.SysSequence;
import org.eae.eldf.framework.pager.Pagination;
import org.eae.eldf.framework.persistence.Criteria;
import org.eae.eldf.framework.service.BaseServiceImpl;
import org.eae.eldf.service.sys.SysSequenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class SysSequenceServiceImpl extends BaseServiceImpl<SysSequence> implements SysSequenceService{
	
	private ISysSequenceDao sysSequenceDao;
	@Autowired
	public void setSysSequenceDao(ISysSequenceDao sysSequenceDao) {
		this.sysSequenceDao = sysSequenceDao;
		this.dao = sysSequenceDao;
	}
	@Override
	public Pagination<SysSequence> queryListSysSequence(
			Pagination<SysSequence> pager, SysSequenceQueryDto sysSequenceQueryDto) {
		// TODO Auto-generated method stub
		 pager = sysSequenceDao.queryListSysSequence(pager, sysSequenceQueryDto);
		 return pager;
		 }
	@Override
	public SysSequence querySequenceById(Long id) {
		// TODO Auto-generated method stub
		return sysSequenceDao.get(SysSequence.class, id);
	}
	@Override
	public void delSequence(Long id) {
		// TODO Auto-generated method stub
		this.sysSequenceDao.delete(SysSequence.class, id);
	}
	
	

}
